import request from '../utils/request'

export function classificationMenuList () {
  return request({
    url: '/classification/menu',
    method: 'get'
  })
}

export function classificationInsert (classification) {
  return request({
    url: '/classification/',
    method: 'post',
    data: classification
  })
}

export function classificationList () {
  return request({
    url: '/classification/',
    method: 'get'
  })
}

export function classificationAllList (query) {
  return request({
    url: '/classification/all',
    method: 'get',
    params: query
  })
}

export function classificationUpdate (classification) {
  return request({
    url: '/classification/',
    method: 'put',
    data: classification
  })
}

export function classificationDelete (classification) {
  return request({
    url: '/classification/delete',
    method: 'delete',
    data: classification
  })
}

export function classificationReset (classification) {
  return request({
    url: '/classification/reset',
    method: 'post',
    data: classification
  })
}
